package com.wiscamp.ninechapters.problems.math;

import com.wiscamp.ninechapters.common.core.ParseHelper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigInteger;

/**
 * 整数
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LatexInteger extends LatexNumber {
    private BigInteger value;


    public String getLatex() {
        return String.valueOf(value);
    }

    public LatexInteger(BigInteger value) {
        this.value = value;
    }

    public LatexInteger(String valueText) {
        this.value = ParseHelper.parseBigInteger(valueText);
    }
}
